package com.example.demo.Entity;

import java.net.InetAddress;

/**
 * 服务器信息
 * @author xyt
 */
public class ServerInfo {
  private InetAddress addr;
  private int port;
  private int num;


  public int getNum() {
    return num;
  }

  public void setNum(int num) {
    this.num = num;
  }

  public ServerInfo(InetAddress addr,int port){
    this.addr = addr;
    this.port = port;
  }

  /**
   * getter & setter
   */
  public InetAddress getAddr() {
    return addr;
  }

  public void setAddr(InetAddress addr) {
    this.addr = addr;
  }

  public int getPort() {
    return port;
  }

  public void setPort(int port) {
    this.port = port;
  }
}
